//
//  SVGlobalHeaders.h
//  SportsWin
//
//  Created by 于洪东 on 2019/5/18.
//  Copyright © 2019 douniwan. All rights reserved.
//

#ifndef SVGlobalHeaders_h
#define SVGlobalHeaders_h

#import "WWTools.h"


/** 布局相关 */
#define SCREEN_HEIGHT       [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH        [UIScreen mainScreen].bounds.size.width
#define ScaleX   SCREEN_WIDTH/375

#define TARGET_IPHONE_X           [WWTools isPhoneX]
#define NAV_BAR_HEIGHT            (TARGET_IPHONE_X ? 88 : 64)
#define STATUS_BAR_HEIGHT         (TARGET_IPHONE_X ? 44 : 20)
#define STATUS_BAR_TOP_MARGIN     (TARGET_IPHONE_X ? 24 : 0)
#define TOP_ESTIMATED_MARGIN      (TARGET_IPHONE_X ? 30 : 0)
#define STATUS_BAR_HEIGHT_ONLY_X  (TARGET_IPHONE_X ? 44 : 0)
#define TAB_BAR_HEIGHT            (TARGET_IPHONE_X ? 83 : 49)
#define TAB_BAR_BOTTOM_MARGIN     (TARGET_IPHONE_X ? 34 : 0)



/** 打印 */
#if DEBUG
#define LRString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent
#define DEF_DEBUG(...) printf(" %s(%d): %s\n\n", [LRString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]);
#else
#define DEF_DEBUG(...) do {} while (0)
#endif


/** 主要配置 */
#define kServiceQQ @"1075295664"  // 客服的QQ
#define kDayMaxStep @"1500"     // 每日可兑换的最大步数



/** 颜色相关 */
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b)  RGBA(r,g,b,1.0)

// 主色调
#define NTMainColor   RGB(4,181,108)
// 黑色
#define NTBlackColor  [UIColor colorWithHexString:@"#000000"]
// 白色
#define NTWhiteColor  [UIColor colorWithHexString:@"#ffffff"]
// 深灰色
#define NTDarkGrayColor  [UIColor colorWithHexString:@"#6C6C6C"]
// 浅灰色
#define NTLightGrayColor  [UIColor colorWithHexString:@"#ADADAD"]
// 背景色
#define NTBackGroundColor  [UIColor colorWithHexString:@"#EBEBEB"]
// 线条的颜色
#define NTLineColor [UIColor colorWithHexString:@"#F0F0F0"]



#endif /* SVGlobalHeaders_h */
